import request from '@/utils/request'
export function getAuthMenus(data) {
  return request({
    url: '/scene/biz/menu/getByUserId',
    method: 'get',
    params:data
  })
}

export function loadMenus(data) {
  return request({
    url: '/scene/biz/menu/findList',
    method: 'get',
    params:data
  })
}
export function saveMenu(data) {
  return request({
    url: '/scene/biz/menu/save',
    method: 'post',
    params:data
  })
}
export function deleteMenu(data) {
  return request({
    url: '/scene/biz/menu/delete',
    method: 'get',
    params:data
  })
}
export function deleteMenuLayer(data) {
  return request({
    url: '/scene/biz/menu/deleteMenuLayer',
    method: 'get',
    params:data
  })
}
export function getLayerByMenu(data) {
  return request({
    url: '/scene/biz/menu/getLayerByMenu',
    method: 'get',
    params:data
  })
}
export function saveMenuLayers(data) {
  return request({
    url: '/scene/biz/menu/saveMenuLayers',
    method: 'post',
    params:data
  })
}
export function updateMenuLayer(data) {
  return request({
    url: '/scene/biz/menu/updateMenuLayer',
    method: 'post',
    params:data
  })
}
